package com.example.bookdemo.model;

import com.example.bookdemo.util.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class bookInfo {
    private Integer id;
    private String bookName;
    private String author;
    private Integer count;
    private BigDecimal price;//BigDecimal 是一个数学运算方法,因为生成的是一个对象,所以进行任何运算的时候,都只能调用他里面的方法
    private String publish;
    private Integer status;
    private String stateCN;
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date updateTime;

}
